package com.by.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/*
 * 产品
 * */
@ApiModel("产品")
@Data
public class Product {
    @ApiModelProperty(name = "产品id")
    int  id;
    @ApiModelProperty(name = "产品编码")
    String code;
    @NotEmpty(message = "产品名字不能为空")
    @ApiModelProperty(name = "产品名字")
    String name;
    @ApiModelProperty(name = "产品类型")
    int type;
    String unit;
    String picurl;
    String categoryPath;
    String categoryName;
    String spec;
    String specBarCode;
    String specCode;
    int  brandId;
    String brandName;
    int materialId;
    String materialName;
    double weight;
    int size;
    String productNumber;
    String factoryNumber;
    String originalNumber;
    int inventory;
    double price;
    int sorts;
    int min;
    int max;
    String brandDetail;
    String detail;
    int status;
}
